% !TeX TS-program = xelatex
\documentclass[10pt]{ctexbook}

%\usepackage{xeCJK}
%\usepackage{indentfirst}
%\linespread{1.3}\selectfont

\input{config/config}
% \input{config/config-sec.tex}

\ctexset{part/numbering=false,
chapter/format+=\centering\linespread{.96225}\selectfont,
chapter/numbering=false,
%	chapter/titleformat+=\linespread{.8}\selectfont,	
}

%\usepackage[explicit]{titlesec}
%\usepackage{xcolor}
%%Setting section title bg color
%\definecolor{redbg}{RGB}{235, 214, 214}
%%Setting subsection and subsubsection title color
%\definecolor{Red}{RGB}{163, 25, 25}
%
%\titleformat{\section}
%{\normalfont\LARGE\bfseries}
%{}
%{0em}
%{\colorbox{redbg}{\parbox{\dimexpr\textwidth-2\fboxsep\relax}{\textcolor{Red}{\thesection\quad#1}}}}
%
%%Underlining ruler for subsections
%\titleformat{\subsection}
%{\normalfont\Large\bfseries\color{Red}}
%{\thesubsection}
%{1em}
%{#1}
%[{\titlerule[0.8pt]}]

%\setcounter{secnumdepth}{-2}
%\setcounter{tocdepth}{1}
%\input{SourceHanSC}
\input{fzfonts}

\title{\includegraphics{figures/maozedong}}
\author{毛泽东}
\date{出版：一九九一年二月 \\ 编译：\today}

\begin{document}
\maketitle

\frontmatter
\tableofcontents
\mainmatter

\raggedbottom

\part{第一次国内革命战争时期}
	\ctexset{section/numbering=false}
    \include{Chapters/chap1}
    
    \ctexset{subsection={format+=\centering,name={第,件},number=\chinese{subsection}}}    
    \include{Chapters/chap2}
    
	\ctexset{section={number=\chinese{section}}}	
    \include{Chapters/chap3}
    \include{Chapters/chap4}
    % \markdownInput{Chapters/005.md}
    \include{ch_practice}
\end{document}
